package com.tql.kingdee.response;

import java.util.Objects;

/**
 * "fnumber":"BU101001000200201","fname":"厨部库","FParentID.fnumber":"BU1010010002002","FParentID.fname":"马鞍山路店厨部"
 *
 * fnumber,fname,FParentID.fnumber as parentFnumber,FParentID.fname as parentFname
 */
public class OrgResponse {
    private  String fname;
    private  String fnumber;
    private String parentFnumber;
    private String parentFname;

    public String getParentFnumber() {
        return parentFnumber;
    }

    public void setParentFnumber(String parentFnumber) {
        this.parentFnumber = parentFnumber;
    }

    public String getParentFname() {
        return parentFname;
    }

    public void setParentFname(String parentFname) {
        this.parentFname = parentFname;
    }

    public String getFname() {
        return fname;
    }

    private void setFname(String fname) {
        this.fname = fname;
    }

    public String getFnumber() {
        return fnumber;
    }

    private void setFnumber(String fnumber) {
        this.fnumber = fnumber;
    }

    @Override
    public String toString() {
        return "OrgResponse{" +
                "fname='" + fname + '\'' +
                ", fnumber='" + fnumber + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        OrgResponse that = (OrgResponse) o;
        return Objects.equals(fname, that.fname) && Objects.equals(fnumber, that.fnumber);
    }

    @Override
    public int hashCode() {
        return Objects.hash(fname, fnumber);
    }
}
